package com.example.combie;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class Hello extends AppCompatActivity {

    private TextView name;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_hello);

        name = (TextView) findViewById(R.id.name);
        Intent intent = getIntent();
        name.setText(intent.getStringExtra("name"));
    }
}
